package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.util.Objects;

@Entity
@Table(name = "dept_sort", schema = "boot", catalog = "")
@IdClass(DeptSortPK.class)
public class DeptSort {
    private int deptId;
    private int sortID;


    public DeptSort() {
    }

    public DeptSort(int deptId, int sortID) {
        this.deptId = deptId;
        this.sortID = sortID;
    }

    @Id
    @Column(name = "dept_id", nullable = false)
    public int getDeptId() {
        return deptId;
    }

    public void setDeptId(int deptId) {
        this.deptId = deptId;
    }

    @Id
    @Column(name = "sort_id", nullable = false)
    public int getSortID() {
        return sortID;
    }

    public void setSortID(int sortID) {
        this.sortID = sortID;
    }
}
